package com.theo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Component;

/**
 * <p>
 * 
 * </p>
 *
 * @author 方涛
 * @since 2021-02-02
 */
@Component
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TripInfo对象", description="")
public class TripInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "患者行程编号")
    @TableId(value = "trip_id", type = IdType.AUTO)
    private Integer tripId;

    @ApiModelProperty(value = "行程类型")
    private Integer tripTypeNum;

    @ApiModelProperty(value = "交通工具编号")
    private String vehicleNum;

    @ApiModelProperty(value = "车厢")
    private String carriageNum;

    @ApiModelProperty(value = "消息来源")
    private String source;

    @ApiModelProperty(value = "出发地")
    private String startPlace;

    @ApiModelProperty(value = "目的地")
    private String endPlace;

    @ApiModelProperty(value = "出发日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;

    @ApiModelProperty(value = "出发时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDate;

    @ApiModelProperty(value = "到达时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDate;


}
